<template>
  <div class="app">
    <!-- 轮播图 -->
    <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
      <ol class="carousel-indicators">
        <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
      </ol>
      <div class="carousel-inner">
        <div class="carousel-item active">
          <img src="../assets/images/xin1.png" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
          <img src="../assets/images/xin1.png" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
          <img src="../assets/images/xin1.png" class="d-block w-100" alt="...">
        </div>
      </div>
      <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>

    <!-- 论文排名 -->
    <section class="papers-ranking">
      <h2>论文排名</h2>
      <ul>
        <li v-for="(paper, index) in papers" :key="index">
          {{ index + 1 }}. {{ paper.title }} - {{ paper.author }}
        </li>
      </ul>
    </section>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      papers: [
        { title: '机器学习算法概览', author: '张三' },
        { title: '深度学习在自然语言处理中的应用', author: '李四' },
        // 更多论文...
      ]
    }
  }
}
</script>

<style scoped>
.header {
  padding: 10px 0;
  background-color: #f8f9fa;
}

.logo {
  max-width: 200px;
  display: block;
  margin: auto;
}

.navbar {
  margin-bottom: 20px;
}

.papers-ranking {
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.papers-ranking h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
</style>